LEADTOOLS Medical (Leadtools.Dicom assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
SetBinaryValue(DicomElement,Byte[],Int32) Method
See Also 
Leadtools.Dicom Namespace > DicomDataSet Class > SetBinaryValue Method : SetBinaryValue(DicomElement,Byte[],Int32) Method



element
An item in the Data Set.
value
Pointer to a buffer that contains the binary value to set.
length
Value that represents the length, in bytes, of the buffer you allocated.
element
An item in the Data Set.
value
Pointer to a buffer that contains the binary value to set.
length
Value that represents the length, in bytes, of the buffer you allocated.
Sets the binary value of an element. Supported in Silverlight, Windows Phone 7.

Syntax

Visual Basic (Declaration) 
Overloads Public Function SetBinaryValue( _
   ByVal element As DicomElement, _
   ByVal value() As Byte, _
   ByVal length As Integer _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As DicomDataSet
Dim element As DicomElement
Dim value() As Byte
Dim length As Integer
Dim value As Boolean
 
value = instance.SetBinaryValue(element, value, length)
C# 
public bool SetBinaryValue( 
   DicomElement element,
   byte[] value,
   int length
)
C++/CLI 
public:
bool SetBinaryValue( 
   DicomElement^ element,
   array<byte>^ value,
   int length
) 

Parameters

element
An item in the Data Set.
value
Pointer to a buffer that contains the binary value to set.
length
Value that represents the length, in bytes, of the buffer you allocated.

Return Value

true if the binary value of the Data Element was set successfully. false if could not set the binary value of the Data Element.

Example

For an example, refer to DicomDataSet.SetIntValue.

Remarks

This method overwrites the value of the Data Element. The Value Length of the Data Element is then equal to length.

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also

Leadtools.Dicom requires a Medical toolkit server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features